package com.k1998.mybatis.dao;

import com.k1998.mybatis.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IStudentDao {
    public List<Student> findAll(@Param("name") String name, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getStudentCounts(@Param("name") String name);
    public Student detailStudent(Student student);
    public int insertStudent(Student student);
    public int updateStudent(Student student);
    public int deleteStudent(Student student);
}
